﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhy.DigitaPlatform.Entities;

namespace Zhy.DigitaPlatform.IDataAccess
{
    public interface ILocalDataAccess
    {
        /// <summary>
        /// 登陆用户查询
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        DataTable Login(string username, string password);
        /// <summary>
        /// 保存设备信息
        /// </summary>
        /// <param name="devices"></param>
        /// <returns></returns>
        void SaveDevice(List<DeviceEntity> devices);
        /// <summary>
        /// 获取设备信息
        /// </summary>
        /// <returns></returns>
        List<DeviceEntity> GetDevices();
        /// <summary>
        ///  获取参数配置数据
        /// </summary>
        /// <returns></returns>
        List<PropEntity> GetPropertyOption();

        /// <summary>
        /// 获取组件信息
        /// </summary>
        /// <returns></returns>
        List<ThumbEntity> GetThumbList();
    }
}
